package it.poste.il.compensatore.service;

import it.poste.il.compensatore.entities.Operation;

import java.util.List;

public interface OperationService {
	
	/**
	 * Method that retrieve the operation by id.
	 * @param id Id to identify the operation.
	 * @return Operation The entity operation.
	 */
	public Operation retrieveByID(Long id);

	/**
	 * Method that retrieve the string ObjHelper by operation.
	 * @param opt The Operation.
	 * @return String The ObjHelper of the entity Operation.
	 */
	public String selectObjHelper(Operation opt);

	/**
	 * The list of all operations.
	 * @return List The list of Operation.
	 */
	public List<Operation> retrieveAll();

	/**
	 * Method that save the operation.
	 * @param operation Operation to save.
	 * @return Operation The Operation saved.
	 */
	public Operation save(Operation operation);

	/**
	 * Update the operation.
	 * @param operation Operation to update.
	 * @return void
	 */
	public void update(Operation operation);

	/**
	 * Delete the operation.
	 * @param operation Operation to delete.
	 * @return void
	 */
	public void delete(Operation operation);
}
